<template>
  <div>
    <div @click="likeFn">
      <img :src="dogImgUrl" alt="" />
      <p>{{ dogName }}</p>
    </div>
  </div>
</template>

<script>
export default {
  props: ['dogImgUrl', 'dogName'],
  methods: {
    likeFn() {
      this.$emit('likeDog', this.dogName)
    }
  }
}
</script>

<style lang="scss"></style>
